package com.open.capacity.talented.controller;

import com.open.capacity.common.web.Result;
import com.open.capacity.talented.dto.LayuiDto;
import com.open.capacity.talented.service.UnemployedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tunemployed")
public class UnemployedController {
    @Autowired
    UnemployedService unemployedService;

    //TODO 分页查询待业人员
    @GetMapping("/list")
    public Result unemployedList(LayuiDto dto, Integer enabled){
        return Result.succeed(unemployedService.queryAllWithIndustry(dto,enabled),"ok");
    }
    //TODO 待业人员模糊搜索
}
